Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: restore choice tags on state reloading #1023

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Conversation

Shepard
Copy link
Contributor

@Shepard Shepard commented Aug 5, 2023

Choice tags were missing in serialisation and deserialisation of state to/from JSON.

Fixes #1022

Checklist

  • The new code additions passed the tests (npm test).
  • Sadly not. The new TypeScript test I wrote works (npm run test:typescript) but running npm run test:javascript produces many (unrelated?) failures.
  • The linter ran and found no issues (npm run-script lint).
  • Not really, the linter reports 142 problems for me, but in files I haven't touched. And while running npm run-script lint:fix touches a few files, it doesn't add any changes.

Description

See above.

Choice tags were missing in serialisation and deserialisation of state to/from JSON.

Fixes y-lohse#1022
@smwhr
Copy link
Collaborator

smwhr commented Aug 5, 2023

Linter and test passed on the pipeline 🥳

@smwhr
Copy link
Collaborator

smwhr commented Aug 15, 2023

Tentatively pinging @joethephish on this one, as the save format should be future-compatible with the C# runtime.

@joethephish
Copy link
Contributor

Yep think this makes sense!

@smwhr smwhr merged commit f272cc1 into y-lohse:master Aug 16, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Choice tags are gone after state reloading
3 participants